package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import lombok.Data;


@TableName("cooperativeFarm")
@Data
public class CooperativeFarm {
    @MppMultiId//设置主键
    private Integer farmId;
    private String farmName;
    private String name;
    private String farmAdd;
    private String farmTel;
    private String farmPro;
    private String farmProfile;
    private String note;

    public CooperativeFarm() {

    }

    public Integer getTenantId() {
        return tenantId;
    }

    public void setTenantId(Integer tenantId) {
        this.tenantId = tenantId;
    }

    @MppMultiId
    private Integer tenantId;

    public CooperativeFarm(Integer farmId, String farmName, String name, String farmAdd, String farmTel, String farmPro, String farmProfile, String note,Integer tenantId) {
        this.farmId = farmId;
        this.farmName = farmName;
        this.name = name;
        this.farmAdd = farmAdd;
        this.farmTel = farmTel;
        this.farmPro = farmPro;
        this.farmProfile = farmProfile;
        this.note = note;
        this.tenantId=tenantId;
    }

    public Integer getFarmId() {
        return farmId;
    }

    public void setFarmId(Integer farmId) {
        this.farmId = farmId;
    }

    public String getFarmName() {
        return farmName;
    }

    public void setFarmName(String farmName) {
        this.farmName = farmName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFarmAdd() {
        return farmAdd;
    }

    public void setFarmAdd(String farmAdd) {
        this.farmAdd = farmAdd;
    }

    public String getFarmTel() {
        return farmTel;
    }

    public void setFarmTel(String farmTel) {
        this.farmTel = farmTel;
    }

    public String getFarmPro() {
        return farmPro;
    }

    public void setFarmPro(String farmPro) {
        this.farmPro = farmPro;
    }

    public String getFarmProfile() {
        return farmProfile;
    }

    public void setFarmProfile(String farmProfile) {
        this.farmProfile = farmProfile;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
